/**
 * Created by acer on 2016/10/11.
 */
$(function() {
    $.fn.fullpage({
        navigation: false,
       /* slidesColor: ["#293C55", "#293C55", "#293C55", "#293C55", "#293C55"],*/
        scrollOverflow:true,
        anchors: ['page1', 'page2', 'page3', 'page4', 'page5'],
        menu: '#menu',
        verticalCentered: false,
        afterLoad: function (anchorLink, index){
            var a=$('#menu').children();
            for(var i= 0;i<a.length;i++){
                $(a[i]).removeClass('active')
            }
            $(a[index-1]).addClass('active')
            if(index==4){
                $(function(){
                    //$("#tagscloud").children().remove();
                    $("#tagscloud").jQCloud(word_list,{
                        delayedMode:true,
                        shape:' rectangular'
                    });
                });
            }else{
                $("#tagscloud").children().remove();
            }
        }
    })
})

var word_list =[
    {text: "程序猿", weight: 25},
    {text: "不吐槽会死星人", weight: 6, html: {"class": "vertical"}},
    {text: "文艺青年", weight: 17},
    {text: "95后", weight: 15, html: {"class": "vertical"}},
    {text: "游戏达人", weight: 6},
    {text: "民谣", weight: 14, html: {"class": "vertical"}},
    {text: "阅读", weight: 12, html: {"class": "vertical"}},
    {text: "写小说", weight: 8},
    {text: "好奇心", weight: 17, html: {"class": "vertical"}},
    {text: "想象力", weight: 18},
    {text: "射手座", weight: 15, html: {"class": "vertical"}},
    {text: "无肉不欢", weight: 13},
    {text: "狂吃不胖", weight: 13},
    {text: "睡觉", weight: 13},
    {text: "起床困难户", weight: 10, html: {"class": "vertical"}},
    {text: "技术控", weight: 16},
    {text: "篮球", weight: 14},
    {text: "历史控", weight: 6, html: {"class": "vertical"}},
    {text: "幽默", weight: 16, html: {"class": "vertical"}},
    {text: "乐观", weight: 17},
    {text: "团队意识", weight: 15, html: {"class": "vertical"}},
    {text: "温柔", weight: 16},
    {text: "上网", weight: 12},
    {text: "H5", weight: 22},
    {text: "喜欢挑战", weight: 16, html: {"class": "vertical"}},
    {text: "麦霸", weight: 8},
    {text: "生活大爆炸", weight: 6, html: {"class": "vertical"}},
    {text: "诗经", weight: 14},
    {text: "喜欢学习", weight: 16},
    {text: "小清新", weight: 16},
    {text: "阳光", weight: 17},
    {text: "程序猿", weight: 4},
    {text: "不吐槽会死星人", weight: 4, html: {"class": "vertical"}},
    {text: "文艺青年", weight: 4},
    {text: "95后", weight: 4, html: {"class": "vertical"}},
    {text: "游戏达人", weight: 4},
    {text: "民谣", weight: 4, html: {"class": "vertical"}},
    {text: "阅读", weight: 4, html: {"class": "vertical"}},
    {text: "写小说", weight: 4},
    {text: "好奇心", weight: 4, html: {"class": "vertical"}},
    {text: "想象力", weight: 4},
    {text: "射手座", weight: 4, html: {"class": "vertical"}},
    {text: "无肉不欢", weight: 4},
    {text: "狂吃不胖", weight: 4},
    {text: "睡觉", weight: 4},
    {text: "起床困难户", weight: 4, html: {"class": "vertical"}},
    {text: "技术控", weight: 4},
    {text: "篮球", weight: 4},
    {text: "历史控", weight: 4, html: {"class": "vertical"}},
    {text: "幽默", weight: 4, html: {"class": "vertical"}},
    {text: "乐观", weight: 4},
    {text: "团队意识", weight: 4, html: {"class": "vertical"}},
    {text: "温柔", weight: 4},
    {text: "上网", weight: 4},
    {text: "H5", weight: 4},
    {text: "喜欢挑战", weight: 4, html: {"class": "vertical"}},
    {text: "麦霸", weight: 4},
    {text: "生活大爆炸", weight: 4, html: {"class": "vertical"}},
    {text: "诗经", weight: 4},
    {text: "喜欢学习", weight: 4},
    {text: "小清新", weight: 4},
    {text: "阳光", weight: 4},
    {text: "程序猿", weight: 4},
    {text: "不吐槽会死星人", weight: 4, html: {"class": "vertical"}},
    {text: "文艺青年", weight: 4},
    {text: "95后", weight: 4, html: {"class": "vertical"}},
    {text: "游戏达人", weight: 4},
    {text: "民谣", weight: 4, html: {"class": "vertical"}},
    {text: "阅读", weight: 4, html: {"class": "vertical"}},
    {text: "写小说", weight: 4},
    {text: "好奇心", weight: 4, html: {"class": "vertical"}},
    {text: "想象力", weight: 4},
    {text: "射手座", weight: 4, html: {"class": "vertical"}},
    {text: "无肉不欢", weight: 4},
    {text: "狂吃不胖", weight: 4},
    {text: "睡觉", weight: 4},
    {text: "起床困难户", weight: 4, html: {"class": "vertical"}},
    {text: "技术控", weight: 4},
    {text: "篮球", weight: 4},
    {text: "历史控", weight: 4, html: {"class": "vertical"}},
    {text: "幽默", weight: 4, html: {"class": "vertical"}},
    {text: "乐观", weight: 4},
    {text: "团队意识", weight: 4, html: {"class": "vertical"}},
    {text: "温柔", weight: 4},
    {text: "上网", weight: 4},
    {text: "H5", weight: 4},
    {text: "喜欢挑战", weight: 4, html: {"class": "vertical"}},
    {text: "麦霸", weight: 4},
    {text: "生活大爆炸", weight: 4, html: {"class": "vertical"}},
    {text: "诗经", weight: 4},
    {text: "喜欢学习", weight: 4},
    {text: "小清新", weight: 4},
    {text: "阳光", weight: 4},
    {text: "程序猿", weight: 4},
    {text: "不吐槽会死星人", weight: 4, html: {"class": "vertical"}},
    {text: "文艺青年", weight: 4},
    {text: "95后", weight: 4, html: {"class": "vertical"}},
    {text: "游戏达人", weight: 4},
    {text: "民谣", weight: 4, html: {"class": "vertical"}},
    {text: "阅读", weight: 4, html: {"class": "vertical"}},
    {text: "写小说", weight: 4},
    {text: "好奇心", weight: 4, html: {"class": "vertical"}},
    {text: "想象力", weight: 4},
    {text: "射手座", weight: 4, html: {"class": "vertical"}},
    {text: "无肉不欢", weight: 4},
    {text: "狂吃不胖", weight: 4},
    {text: "睡觉", weight: 4},
    {text: "起床困难户", weight: 4, html: {"class": "vertical"}},
    {text: "技术控", weight: 4},
    {text: "篮球", weight: 4},
    {text: "历史控", weight: 4, html: {"class": "vertical"}},
    {text: "幽默", weight: 4, html: {"class": "vertical"}},
    {text: "乐观", weight: 4},
    {text: "团队意识", weight: 4, html: {"class": "vertical"}},
    {text: "温柔", weight: 4},
    {text: "上网", weight: 4},
    {text: "H5", weight: 4},
    {text: "喜欢挑战", weight: 4, html: {"class": "vertical"}},
    {text: "麦霸", weight: 4},
    {text: "生活大爆炸", weight: 4, html: {"class": "vertical"}},
    {text: "诗经", weight: 4},
    {text: "喜欢学习", weight: 4},
    {text: "小清新", weight: 4},
    {text: "阳光", weight: 4}
]





